package net.lainiao.javademo.web.service;

import net.lainiao.javademo.base.api.IDemoInfoService;
import net.lainiao.javademo.base.model.DemoInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2016/11/21.
 */
@Service
public class TestService {
    @Autowired
    IDemoInfoService demoInfoService;

    public String getMySqlVersion() {
        return demoInfoService.getVersion();
    }

    public DemoInfo getDemoInfo(int key){
        return demoInfoService.getDemoInfo(key);
    }
}
